package codetop.microsoft.T49;

import util.ListUtil;

import java.util.List;

/**
 * @Author: 18362
 * @Create: 2022-08-16 11:05:10 星期二
 */
public class M49 {
    public static void main(String[] args) {
        String[] strs = new String[] {"eat", "tea", "tan", "ate", "nat", "bat"};
        List<List<String>> lists = new Solution().groupAnagrams(strs);
        for (List<String> list : lists) {
            for (String s : list) {
                System.out.print(s + ", ");
            }
            System.out.println();
        }
    }
}
